package com.itheima.Jiuye14;

public class MySemaphore {
    public static void main(String[] args) {
        MyRunnable myRunnable = new MyRunnable();
        for (int i = 0; i < 50; i++) {
            Thread thread = new Thread(myRunnable);   //创建线程对象
            thread.start();    //开启线程
        }
    }
}
